#ifndef PUBLIC_H
#define PUBLIC_H

#include <pcap.h>
//#include "tcp_conversitons.h"
#define UNALIGNED	__attribute__((packed))

struct options{
    const char *interface;
    const char *file_pcap_in;
    const char *file_tcp_dump;
    const char *expression;
    int frametype;
};

struct tok {
    u_int v;		/* value */
    const char *s;		/* string */
};


extern char *g_program_name;
//extern TCPConversitons g_tcpconvs;

char *copy_argv(register char **argv);
void error(const char *fmt, ...);
const char *tok2str(register const struct tok *lp, register const char *fmt,
    register u_int v);

#endif // PUBLIC_H
